﻿using System.Collections.Generic;
using UnityEngine;
/*参考答案*/
public class OnMouseDown_Teacher : MonoBehaviour
{
    public static GameObject current;
    private void OnMouseDown()
    {
        if (current!=null)
        {
            current.GetComponent<MeshRenderer>().material.color = Color.white;
        }
        this.gameObject.GetComponent<MeshRenderer>().material.color = Color.red;
        current = this.gameObject;
    }
}
